 import fetch from './axios'
// 分类
export const cateList = data => fetch('/classify/getlisttree', data)
export const cateList2 = data => fetch('/classify/getshowlisttree', data) //文章推送专用
export const cateRemove = data => fetch('/classify/remove', data)
export const cateSave = data => fetch('/classify/save', data)
export const cateModify = data => fetch('/classify/modify', data)
export const cateOrder = data => fetch('/classify/modifysortnum', data)

// 文章
export const artList = data => fetch('/appletArticle/getlist', data)
export const artRemove = data => fetch('/appletArticle/remove', data)
export const artDelete = data => fetch('/appletArticle/delete', data)
export const artRecovery = data => fetch('/appletArticle/update', data)
export const artSave = data => fetch('/appletArticle/save', data)
export const artModify = data => fetch('/appletArticle/modify', data)
export const artGetById = data => fetch('/appletArticle/get', data)

//推送
export const artPushListEd = data => fetch('/articlepush/gethavelist', data)
export const artPushList = data => fetch('/articlepush/getnotlist', data)
export const artSelectApplet = data => fetch('/articlepush/getapplet', data)
export const artPushArt = data => fetch('/articlepush/save', data)


// 小程序
export const wechatList = data => fetch('/applet/getlist', data)
export const wechatRemove = data => fetch('/applet/remove', data)
export const wechatSave = data => fetch('/applet/save', data)
export const wechatModify = data => fetch('/applet/modify', data)
export const wechatGetById = data => fetch('/applet/get', data)


// 自媒体
export const weOwnList = data => fetch('/user/getagentlist', data)
export const weOwnRemove = data => fetch('/user/remove', data)
export const weOwnSave = data => fetch('/user/save', data)
export const weOwnModify = data => fetch('/user/modify', data)
export const weOwnApplet = data => fetch('/user/getassignapplet', data)
export const weOwnAppletMaxArt = data => fetch('/user/saveappletarticle', data) //保存推荐文章最大数量
export const weOwnToApplet = data => fetch('/user/addapplettouser', data) //分配小程序
export const weOwnCancelApplet = data => fetch('/user/removeapplettouser', data) //取消分配小程序

//客户管理
export const clientList = data => fetch('/applet/user/getlist', data)
export const clientToExcel = data => fetch('/applet/user/export', data, 'blob')







